package ae.pcfc.cldos.online.web.controller.confirmation;



import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import ae.pcfc.cldos.online.web.ViewPath;
import ae.pcfc.cldos.online.web.controller.base.BasePageController;
import ae.pcfc.cldos.online.web.model.BackOfficeAdminReview;

/**
 * @author Abed
 * 
 * this is controller for confirmation page that will display reference number after 
 * Document and Data validation Approve.
 */
@Controller
@RequestMapping(ViewPath.__BACKOFFICE_CONFIRMATION)
public class BackOfficeConfirmationController extends BasePageController {

	
	@RequestMapping(value = "/show.htm", method = RequestMethod.GET)
	public void form(@RequestParam(value = "refNo", required = true) String refNo,
			@RequestParam(value = "Incident", required = true) String incident,
			@RequestParam(value = "StepName", required = true) String stepName,
			@RequestParam(value = "InitiatedBy", required = true) String initiatedBy,
			@ModelAttribute(value = "backOfficeAdminReview") BackOfficeAdminReview adminReview) {

		adminReview.setClientReferenceNo(refNo);
		adminReview.setStrIncidentNo(incident);
		adminReview.setStrStepName(stepName);
		adminReview.setInitiatedBy(initiatedBy);
		
	}
	

}
